package io;

import java.io.IOException;
import java.io.OutputStream;
import java.net.InetSocketAddress;
import java.net.Socket;

public class IOClient {
    public static void main(String[] args) throws IOException, InterruptedException {
        Socket socket = new Socket("192.168.128.228", 8081);
        int count = 0;
        while (count <= 5){
            OutputStream outputStream = socket.getOutputStream();
            outputStream.write("hello world".getBytes());
            Thread.sleep(1000);
            count ++;
        }
    }
}
